import type { RouteRecordRaw } from 'vue-router'

// 账户相关的路由配置
export const accountRoutes: RouteRecordRaw[] = [
  {
    path: '/account',
    name: 'account',
    component: () => import('../views/account/AccountView.vue'),
    meta: {
      title: '账户余额',
      requiresAuth: true
    }
  },
  {
    path: '/account/recharge',
    name: 'recharge',
    component: () => import('../views/account/RechargeView.vue'),
    meta: {
      title: '充值中心',
      requiresAuth: true
    }
  },
  {
    path: '/account/recharge-records',
    name: 'recharge-records',
    component: () => import('../views/account/RechargeRecords.vue'),
    meta: {
      title: '充值记录',
      requiresAuth: true
    }
  },
  {
    path: '/account/balance-records',
    name: 'balance-records',
    component: () => import('../views/account/BalanceRecordsView.vue'),
    meta: {
      title: '余额明细',
      requiresAuth: true
    }
  },
    // 新增支付页面路由
  {
    path: '/account/payment/:rechargeNo',
    name: 'payment',
    component: () => import('../views/account/PaymentPage.vue'),
    meta: {
      title: '支付页面',
      requiresAuth: true
    }
  },
]